package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for journey resource.
func SetJourneyRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewJourneyHandler(db)

	routerGroup.GET("/query-list-by-account-group", h.QueryListByAccountGroup)
	routerGroup.POST("/add", h.Add)
	routerGroup.POST("/update", h.Update)
	routerGroup.POST("/delete", h.Delete)
}
